package org.spring.aicloud.util;

/**
 * 全局变量
 */
public class AppVariable {
    //讨论表事件的主题名称
    public static final String DISCUSS_SUPPORT_TOPIC = "DISCUSS_SUPPORT_TOPIC";

    public static final Integer PAGE_SIZE = 2; //todo:上线之后改为10

    /**
     * 大模型调用分布式锁key值
     *
     * @param uid
     * @param model
     * @param type
     * @return
     */
    public static String getModelLockKey(Long uid,int model,int type){
        return "model_lock_"+uid+"_"+model+"_"+type;
    }

    /**
     * 列表的缓存key
     */
    public static String getListCacheKey(Long uid,int model,int type){
        return "list_cache_"+uid+"_"+model+"_"+type;
    }
}
